﻿using System;
using System.Collections.Generic;
using wuo;

namespace ConsoleApp1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            var a = new T1();
            a.A1 = "999";
            // a.A2 = null;
            a.A3 = new Dictionary<string, string> { ["a"] = "", ["ssss"] = "3", ["c"]= null };
            a.A4 = new List<string>{"a", "b"};
            a.A5 = new string[]{ "1", "", null };
            a.A6 = new int[]{0, -22, 0, -1, 22, 300, int.MaxValue, int.MinValue };

            var x = WuoConvert.SerializeObject(a);
            Console.WriteLine(x);

            var x2 = WuoConvert.DeserializeObject<T1>(x);
            ;
        }
    }
}
